Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6781 my data render #6802

Merged
merged 4 commits into from
Apr 10, 2020
Merged

6781 my data render #6802

merged 4 commits into from
Apr 10, 2020

Conversation

sekmiller
Copy link
Contributor

What this PR does / why we need it:
Fixes MyData rendering

Which issue(s) this PR closes:

Closes #6781

Special notes for your reviewer:
Gets dataset version based on the versionId saved in the SolrSearchResult

Suggestions on how to test this:
Cannot be a super user. Also try oddball cases like only a draft and/or all versions deaccessioned.

Does this PR introduce a user interface change?:
No

Is there a release notes update needed for this change?:
No
Additional documentation:
None

@coveralls
Copy link

coveralls commented Apr 9, 2020

Coverage Status

Coverage decreased (-0.0008%) to 19.66% when pulling d80b448 on 6781-my-data-render into d04d09c on develop.

dv = ds.getReleasedVersion();
DatasetVersion dv = null;

for (DatasetVersion v : ds.getVersions()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good, but let's move this logic onto a method on Dataset (in case we need to use it elsewhere some time, and then it makes this fewer lines, ie.
DatasetVersion dv = ds.getVersion(this.datasetVersionId);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the suggested method to Dataset

@scolapasta scolapasta assigned sekmiller and unassigned scolapasta Apr 9, 2020
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Code Review 🦁 to QA 🔎✅ Apr 9, 2020
@kcondon kcondon self-assigned this Apr 10, 2020
@kcondon kcondon merged commit 47ca3c3 into develop Apr 10, 2020
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from QA 🔎✅ to Done 🚀 Apr 10, 2020
@kcondon kcondon deleted the 6781-my-data-render branch April 10, 2020 21:41
@djbrooke djbrooke added this to the Dataverse 5 milestone Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Unable to load "My Data" on production
5 participants